package com.wander.designCreational.singleton.layzsingleton;

/**
 * @Author : WDYin
 * @Date : 2020/5/8
 * @Description :
 */
public class Singleton {

    private static Singleton singleton = null;

    private Singleton() {
    }

    public static Singleton getSingleton() {
        if (singleton == null) {
            singleton = new Singleton();
        }
        return singleton;
    }
}
